/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.designpatterns.creational.singleton;

import java.util.Date;

/**
 *
 * @author BassonCJ
 */
public class Singleton {
    private static Singleton singleton = null;

    private  Singleton() {
    }
    
    public static Singleton getInstance(){
        if(singleton == null){
            singleton = new Singleton();
        }
        return singleton;
    }
    
    public Date getDate(){
        return new Date();
    }
}
